home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / driver / win31280.zip / INSTALL.BAT next >
DOS Batch File  |  1992-09-21  |  5KB  |  130 lines

  1. echo off
  2. cls
  3. if ()==(%1) goto NO_ARG
  4. if (net)==(%2) goto NET
  5. if (NET)==(%2) goto NET
  6. if not exist %1\SYSTEM\SETUP.INF goto BADDIR
  7. goto DO_IT
  8. :NET
  9. if not exist %1\WIN.COM goto BADDIR
  10. goto DO_IT
  11. :NO_ARG
  12. cls
  13. echo                   ┌─────────────────────────────────────────┐
  14. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  15. echo                   └─────────────────────────────────────────┘
  16. echo  
  17. echo                This  batch file needs to know where your Windows
  18. echo                directory is located in order to properly install
  19. echo                the drivers.
  20. echo  
  21. echo                    ┌┬────────────────────────────────────┬┐
  22. echo                    ││ Usage: INSTALL [Windows Directory] ││
  23. echo                    └┴────────────────────────────────────┴┘
  24. echo                          Example: INSTALL C:\WINDOWS
  25. goto DONE
  26. :BADDIR
  27. cls
  28. echo                   ┌─────────────────────────────────────────┐
  29. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  30. echo                   └─────────────────────────────────────────┘
  31. echo  
  32. echo                      ERROR: INVALID PATH "%1"
  33. echo  
  34. echo               The path you specified in either incorrect or does
  35. echo               not exist.  Please  check the path to your Windows
  36. echo               directory and try again.  If  you continue to have
  37. echo               difficulty,  please  call ATI Customer Support for
  38. echo               assistance.
  39. echo  
  40. echo                    ┌┬────────────────────────────────────┬┐
  41. echo                    ││ Usage: INSTALL [Windows Directory] ││
  42. echo                    └┴────────────────────────────────────┴┘
  43. echo                          Example: INSTALL C:\WINDOWS
  44. goto DONE
  45. :DO_IT
  46. cls
  47. echo                   ┌─────────────────────────────────────────┐
  48. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  49. echo                   └─────────────────────────────────────────┘
  50. echo  
  51. echo                    This batch file will conveniently extract
  52. echo                    the  Accelerator  Windows 3.1 drivers  to
  53. if (NET)==(%2) goto NETW
  54. if (net)==(%2) goto NETW
  55. echo                    your Windows system directory.
  56. goto NEXT
  57. :NETW
  58. echo                    your Personal Network Windows Directory.
  59. :NEXT
  60. echo                   ┌─────────────────────────────────────────┐
  61. echo                   │ If you are prompted to overwrite a file │
  62. echo                   │             press Y  for YES            │
  63. echo                   └─────────────────────────────────────────┘
  64. echo  
  65. echo                   Press any key to continue the installation
  66. echo                             or CONTROL-C to abort.
  67. echo 
  68. pause >nul
  69. cls
  70. echo                   ┌─────────────────────────────────────────┐
  71. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  72. echo                   └─────────────────────────────────────────┘
  73. echo  
  74. echo Decompressing . . .
  75. if (NET)==(%2) goto NETWORK
  76. if (net)==(%2) goto NETWORK
  77. win31280 /e%1\SYSTEM
  78. if errorlevel == 0 goto OK
  79. goto ERROR
  80. :NETWORK
  81. win31280 /e%1
  82. if errorlevel == 0 goto OK
  83. goto ERROR
  84. :OK
  85. echo 
  86. pause
  87. cls
  88. echo                   ┌─────────────────────────────────────────┐
  89. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  90. echo                   └─────────────────────────────────────────┘
  91. echo                              ────────────────────
  92. echo                          ╒══════════════════════════╕
  93. echo                          │ Installation successful! │
  94. echo                          ╘══════════════════════════╛
  95. echo  
  96. echo           The first step of the Windows 3.1 drivers is now complete.
  97. echo           The next  step is to tell  Windows  to  use these drivers.
  98. echo           Please read  the README.TXT file for further instructions.
  99. if (NET)==(%2) goto NETWO
  100. if (net)==(%2) goto NETWO
  101. echo           README.TXT is located in your %1\SYSTEM directory.
  102. goto DONE
  103. :NETWO
  104. echo           README.TXT is located in your %1 directory.
  105. goto DONE
  106. :ERROR
  107. cls
  108. echo                   ┌─────────────────────────────────────────┐
  109. echo                   │** Accelerator Windows 3.1 1280 Driver **│
  110. echo                   └─────────────────────────────────────────┘
  111. echo                            ────────────────────
  112. echo                           ╒═════════════════════╕
  113. echo                           │ Installation Failed │
  114. echo                           ╘═════════════════════╛
  115. echo     
  116. echo     An error has been reported decompressing the Windows drivers.  This may
  117. echo     be due  to problems  accessing the  specified directory,  low free disk
  118. echo     space, or the archive is corrupt.  First, ensure the path you specified
  119. echo     is correct.  Second, run the DOS CHKDSK utility on your hard drive.  If
  120. echo     CHKDSK reports errors, correct the errors before continuing. Also, make
  121. echo     certain you have at least 3 Meg of free disk space available.
  122. echo     
  123. echo     If you  continue to  have  problems,  you  may  wish  to  try  manually
  124. echo     installing the drivers or  contact ATI Customer Support.  Manual driver
  125. echo     installation instructions are in README.1ST.
  126. :DONE
  127. echo  
  128. echo               ATI Customer Support (416) 756-0711 9am-5:30pm
  129. echo 
  130.